<template>
  <div>
      <div class="swiper-box">
      <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
        <van-swipe-item v-for="(item,index) in list" :key="index">
          <img :src="item.pic" alt />
        </van-swipe-item>
      </van-swipe>
      </div>
  </div>
</template>

<script>
export default {
data(){
    return{
        list:[]
    }
},
created(){
   let goodsId = this.$route.query.id
    // console.log(goodsId)
   this.$netClient.detailsList({
       params:{
           id:goodsId
       }
   }).then((res)=>{
      //  console.log(res.data.data)
       this.list = res.data.data.pics
    //    console.log(this.detailsList)
   })
}
}
</script>

<style>

</style>